package monster.com.cvh.bean;

import java.io.Serializable;
import java.util.List;
import java.util.Objects;

/**
 * @author: 13580
 * @data: 2018/4/8
 * @function:在校经历Bean
 */
public class ExperienceInSchoolBean {

    /**
     * code : 1
     * data : [{"begin_time":"2016年10月","duty_intro":"t","duty_name":"t","end_time":"2016年10月","id":1,"update_time":"2018-04-11 19:49:21.567756"}]
     * msg : ok
     */

    private int code;
    private String msg;
    private List<DataBean> data;

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public List<DataBean> getData() {
        return data;
    }

    public void setData(List<DataBean> data) {
        this.data = data;
    }

    public static class DataBean implements Serializable {
        private static final long serialVersionUID = 6368381879787632412L;
        /**
         * begin_time : 2016年10月
         * duty_intro : t
         * duty_name : t
         * end_time : 2016年10月
         * id : 1
         * update_time : 2018-04-11 19:49:21.567756
         */

        private String begin_time="";
        private String duty_intro="";
        private String duty_name="";
        private String end_time="";
        private int id;
        private String update_time="";

        @Override
        public boolean equals(Object o) {
            if (this == o) return true;
            if (!(o instanceof DataBean)) return false;
            DataBean dataBean = (DataBean) o;
            return Objects.equals(getBegin_time(), dataBean.getBegin_time()) &&
                    Objects.equals(getDuty_intro(), dataBean.getDuty_intro()) &&
                    Objects.equals(getDuty_name(), dataBean.getDuty_name()) &&
                    Objects.equals(getEnd_time(), dataBean.getEnd_time()) &&
                    Objects.equals(getUpdate_time(), dataBean.getUpdate_time());
        }

        @Override
        public int hashCode() {

            return Objects.hash(getBegin_time(), getDuty_intro(), getDuty_name(), getEnd_time(), getUpdate_time());
        }

        @Override
        public String toString() {
            return "DataBean{" +
                    "begin_time='" + begin_time + '\'' +
                    ", duty_intro='" + duty_intro + '\'' +
                    ", duty_name='" + duty_name + '\'' +
                    ", end_time='" + end_time + '\'' +
                    ", id=" + id +
                    ", update_time='" + update_time + '\'' +
                    '}';
        }

        public DataBean() {
        }

        public DataBean(int id) {
            this.id = id;
        }

        public String getBegin_time() {
            return begin_time;
        }

        public void setBegin_time(String begin_time) {
            this.begin_time = begin_time;
        }

        public String getDuty_intro() {
            return duty_intro;
        }

        public void setDuty_intro(String duty_intro) {
            this.duty_intro = duty_intro;
        }

        public String getDuty_name() {
            return duty_name;
        }

        public void setDuty_name(String duty_name) {
            this.duty_name = duty_name;
        }

        public String getEnd_time() {
            return end_time;
        }

        public void setEnd_time(String end_time) {
            this.end_time = end_time;
        }

        public int getId() {
            return id;
        }

        public void setId(int id) {
            this.id = id;
        }

        public String getUpdate_time() {
            return update_time;
        }

        public void setUpdate_time(String update_time) {
            this.update_time = update_time;
        }
    }
}
